﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace _004基础类练习
{
    class Program
    {
        static void Main(string[] args)
        {
            //初始化方式一
            Student s1 = new Student
            {
                Name = "张小歪",
                Sex ='男',
                Age = 19,
                LanguageScore = 89,
                MathematicsScore = 70,
                EnglishScore = 65
            };
            //初始化方式二
            Student s2 = new Student("王小二",'男',20,75,62,83);
            s1.SayHello();
            s2.SayHello();
        }
    }
}
